package happywing.client.widget;

import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.LayoutPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

public class LoginBox extends Composite {
	private TextBox username = new TextBox();
	private TextBox password = new TextBox();
	private Button loginButton=new Button();
	private Image image = new Image();
	
	public LoginBox(){
	    username.setText("用户名");
	    password.setText("密码");
	    loginButton.setText("登录");
	    
	    image.setStyleName("face");
	    image.setUrl("/pics/face.jpg");
	    
		
		VerticalPanel verticalPanel=new VerticalPanel();
		
		

	    
	    LayoutPanel layoutPanel=new LayoutPanel();
	    
	    layoutPanel.add(image);
	    
	    
	    FlowPanel panel = new FlowPanel();
	    panel.add(layoutPanel);
	    
	    
	    
	    initWidget(panel);
	    setStyleName("loginBox");
	    
	}
}
